package com.cqw.service;

import com.cqw.domain.SysLog;
import com.cqw.mapper.one.SysLogMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author: caoqingwen
 * @CreateTime: 2021-05-10 10:19
 * @Description: ${Description}
 */
@Service
@Slf4j
public class SysLogService {

    @Resource
    private SysLogMapper sysLogMapper;

    public int deleteByPrimaryKey(Long logId) {
        return sysLogMapper.deleteByPrimaryKey(logId);
    }

    public int insert(SysLog record) {
        return sysLogMapper.insert(record);
    }

    public int insertOrUpdate(SysLog record) {
        return sysLogMapper.insertOrUpdate(record);
    }

    public int insertOrUpdateSelective(SysLog record) {
        return sysLogMapper.insertOrUpdateSelective(record);
    }

    public int insertSelective(SysLog record) {
        return sysLogMapper.insertSelective(record);
    }

    public SysLog selectByPrimaryKey(Long logId) {
        return sysLogMapper.selectByPrimaryKey(logId);
    }

    public int updateByPrimaryKeySelective(SysLog record) {
        return sysLogMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(SysLog record) {
        return sysLogMapper.updateByPrimaryKey(record);
    }

    public int updateBatch(List<SysLog> list) {
        return sysLogMapper.updateBatch(list);
    }

    public int updateBatchSelective(List<SysLog> list) {
        return sysLogMapper.updateBatchSelective(list);
    }

    public int batchInsert(List<SysLog> list) {
        return sysLogMapper.batchInsert(list);
    }

}
